package pattern.interpreter;

// 非终结者表达式（减法）
public class MinusNonTerminal extends NonTerminal implements Expression {

    public MinusNonTerminal(Expression left, Expression right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return left.interpret() - right.interpret();
    }
}
